test(precompiles): TIP-1022 virtual address and Recipient coverage#3432
Merged
0xrusowsky merged 3 commits intomainfrom Apr 8, 2026
Merged
test(precompiles): TIP-1022 virtual address and Recipient coverage#34320xrusowsky merged 3 commits intomainfrom
0xrusowsky merged 3 commits intomainfrom
Conversation
Adds Recipient unit tests (direct, resolve, validate, event builders), AddressRegistry gap tests (resolve_virtual_address, is_valid_master_address, resolve_recipient pre-T3), and extends existing virtual address tests to cover memo variants and unregistered-address reverts for all entrypoints. Co-Authored-By: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com> Amp-Thread-ID: https://ampcode.com/threads/T-019d4d32-4300-71d9-8d91-632c2147c49d
Contributor
📊 Tempo Precompiles Coverage |
Reduces test LOC by ~220 lines while preserving full coverage: - Consolidated 8 `recipient_tests` into 3 (resolve, validate, build_events) — added `#[derive(Debug, PartialEq)]` on `Recipient` for structural asserts - DRYed `WithMemo` coverage in mint/transfer/transferFrom virtual tests — extract `credited` address once, check balance delta instead of repeating hardfork branches - Compressed `test_unregistered_virtual_reverts_on_t3` from 80 lines to 6 one-liner asserts Prompted by: rusowsky Co-Authored-By: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>
0xrusowsky
approved these changes
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unit tests for Recipient struct and AddressRegistry gaps from #3286.
Co-Authored-By: 0xrusowsky 90208954+0xrusowsky@users.noreply.github.com
Prompted by: rusowsky